<template>
    <div>
        <div class="index-content" id="my">
    <div class="banner">
        <img  v-for="(v,i) in img " :key="i" :src="v" v-show="i==n"/>   
        <div class="banner-circle">
            <ul>
                <li  v-for="(v,i) in img " :key="i" :class="i==n ?'selected':''"></li>  
            </ul> 
        </div>
    </div>

    <div class="index-category">
        <div class="category" v-for="(list,index) in lists" :key="index">
            <i class="iconfont" :class="list.icon" :style="{background:list.color}"></i>
            <label>{{list.title}}</label>
        </div>

    
  </div>
    </div>
    
    <div class="content">
        <div class="header" id="age" >
            <div class="input" >
                <div class="img2">
                    <input type="text" >
                </div>
            </div>
        </div>
        <ul class="bottom">
            <li class="left">
                <a href="javascript:;">
                <p>视频</p>
                <img src="@/assets/img/菜铺/菜谱_10.png" alt="">
                <div class="img">
                    <img src="@/assets/img/菜铺/播放 (1).png" alt="">
                </div>
                </a>
            </li>
            <li class='right'>
                <a href="./bdd.html">
                <h2>简单制作蛋包饭</h2>
                <p class="right_p">
                     蛋包饭是很做人的心头爱，怎么在 家里制作美味的蛋包饭呢？我们...
                </p>
                </a>
                <div class="bottom1">
                    <p><a href="./bdd.html">560收藏</a></p>
                    <a href="javascript:;" class="a">
                        <img src="@/assets/img/底部/发布-恢复的_10.png" alt="">
                    </a>
                </div>
            </li>
        </ul>
        <ul class="bottom">
            <li class="left">
                <a href="javascript:;">
                <p>视频</p>
                <img src="@/assets/img/菜铺/菜谱_10.png" alt="">
                <div class="img">
                    <img src="@/assets/img/菜铺/播放 (1).png" alt="">
                </div>
                </a>
            </li>
            <li class='right'>
                <a href="./bdd.html">
                <h2>简单制作蛋包饭</h2>
                <p class="right_p">
                     蛋包饭是很做人的心头爱，怎么在 家里制作美味的蛋包饭呢？我们...
                </p>
                </a>
                <div class="bottom1">
                    <p><a href="./bdd.html">560收藏</a></p>
                    <a href="javascript:;" class="a">
                        <img src="@/assets/img/底部/发布-恢复的_10.png" alt="">
                    </a>
                </div>
            </li>
        </ul>
        <ul class="bottom">
            <li class="left">
                <a href="javascript:;">
                <p>视频</p>
                <img src="@/assets/img/菜铺/菜谱_10.png" alt="">
                <div class="img">
                    <img src="@/assets/img/菜铺/播放 (1).png" alt="">
                </div>
                </a>
            </li>
            <li class='right'>
                <a href="./bdd.html">
                <h2>简单制作蛋包饭</h2>
                <p class="right_p">
                     蛋包饭是很做人的心头爱，怎么在 家里制作美味的蛋包饭呢？我们...
                </p>
                </a>
                <div class="bottom1">
                    <p><a href="./bdd.html">560收藏</a></p>
                    <a href="javascript:;" class="a">
                        <img src="@/assets/img/底部/发布-恢复的_10.png" alt="">
                    </a>
                </div>
            </li>
        </ul>
        <ul class="bottom">
            <li class="left">
                <a href="javascript:;">
                <p>视频</p>
                <img src="@/assets/img/菜铺/菜谱_10.png" alt="">
                <div class="img">
                    <img src="@/assets/img/菜铺/播放 (1).png" alt="">
                </div>
                </a>
            </li>
            <li class='right'>
                <a href="./bdd.html">
                <h2>简单制作蛋包饭</h2>
                <p class="right_p">
                     蛋包饭是很做人的心头爱，怎么在 家里制作美味的蛋包饭呢？我们...
                </p>
                </a>
                <div class="bottom1">
                    <p><a href="./bdd.html">560收藏</a></p>
                    <a href="javascript:;" class="a">
                        <img src="@/assets/img/底部/发布-恢复的_10.png" alt="">
                    </a>
                </div>
            </li>
        </ul>
        <ul class="bottom">
            <li class="left">
                <a href="javascript:;">
                <p>视频</p>
                <img src="@/assets/img/菜铺/菜谱_10.png" alt="">
                <div class="img">
                    <img src="@/assets/img/菜铺/播放 (1).png" alt="">
                </div>
                </a>
            </li>
            <li class='right'>
                <a href="./bdd.html">
                <h2>简单制作蛋包饭</h2>
                <p class="right_p">
                     蛋包饭是很做人的心头爱，怎么在 家里制作美味的蛋包饭呢？我们...
                </p>
                </a>
                <div class="bottom1">
                    <p><a href="./bdd.html">560收藏</a></p>
                    <a href="javascript:;" class="a">
                        <img src="@/assets/img/底部/发布-恢复的_10.png" alt="">
                    </a>
                </div>
            </li>
        </ul>
        <ul class="bottom">
            <li class="left">
                <a href="javascript:;">
                <p>视频</p>
                <img src="@/assets/img/菜铺/菜谱_10.png" alt="">
                <div class="img">
                    <img src="@/assets/img/菜铺/播放 (1).png" alt="">
                </div>
                </a>
            </li>
            <li class='right'>
                <a href="./bdd.html">
                <h2>简单制作蛋包饭</h2>
                <p class="right_p">
                     蛋包饭是很做人的心头爱，怎么在 家里制作美味的蛋包饭呢？我们...
                </p>
                </a>
                <div class="bottom1">
                    <p><a href="./bdd.html">560收藏</a></p>
                    <a href="javascript:;" class="a">
                        <img src="@/assets/img/底部/发布-恢复的_10.png" alt="">
                    </a>
                </div>
            </li>
        </ul>
    </div>
    </div>
</template>


<script>
export default {
    
}
</script>
<style lang="">
    a{
    text-decoration: none;
    color: #000;
}
li{
	list-style-type: none;
}
body{
    margin: 0;
    padding: 0;
}
.header{
    margin-top: 4rem;
    width: 100%;
    height: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    margin-bottom: 1rem;
}
.header h2{
    margin: -0;
    width: 20%;
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: 500;
    padding-left: 5%;
    letter-spacing: 3px;
    font-size: 25px;
}
.header .input{
    
    /* margin-top: 3%; */
    width: 100%;
    /* display: none; */
}
.header .img2{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: 0;
}
.header .img2 a{
    width: 10%;
}
.header .img2 a img{
    margin-top: 10%;
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
}
.header input{
    width: 96%;
    height: 1.5rem;
    outline: none;
    border-radius: 2rem;
    padding-left: 1rem;
}
.header_img{
    line-height: 5.9rem;
    text-align: center;
    width: 20%;
    
}
.header_img img:nth-child(1){
    
    width: 65%;
    height: 37%;
}   
.header .header_img a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header .header_img a img{
    width: 2rem;
    height: 2rem;
}
.nav{
     display: flex;
    flex-direction: row; 
    margin: 0;
    padding-left: 8%;
    
}
.nav li:first-child{
    margin-left: 0;
}
.nav li{
    margin: 0.7rem;
    margin-right: 0;
    background-color: #2cd2b9;
    border-radius: 5px;
    text-align: center;
    width: 4rem;
    height: 2rem;
    line-height: 2rem;
    list-style: none;
}

.content{
    
    margin-left: 8%;
    margin-right: 8%;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
.content1{
    margin-bottom: 5rem;
}
.content h2{
    margin-top: 0;
    margin-bottom: 10px;
}
.bottom{
    margin-left: -2.7rem;
    width: 100%;
    height: 100%;
    display: flex;
    margin-top: 0;
    flex-direction: row;
    padding-bottom: 1%;
}
.content .left p{
    margin-top: -0.05%;
    margin-left: 1%;
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}
.content .left{
    position: relative;
    list-style: none;
}
.content .left img{

    width: 7.8125rem;
    height: 7.8125rem;
}
.content .left .img{
    border: 1px solid #fff;
    border-radius: 50%;
    line-height: 50px;
    width: 50px;
    height: 50px;
    position: absolute;
    margin-top: -25px;
    margin-left: -25px;
    left: 50%;
    top: 50%;
    background-color: #92938e;
}
.content .left .img img{
    padding-left: 27%;
    padding-top: 20%;
    width: 60%;
    height: 60%;
}
.content .right{
    width: 100%;
    height: 7.8125rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.content .right h2{
    margin-bottom: 10%;
    -webkit-line-clamp: 2;
    letter-spacing: 1px;
    margin-top: -1%;
    padding-left: 10%;
    font-weight: 700;
    font-size: 18px;
}
.content .right_p{
    /* background-color: #ff8787; */
    padding-left: 10%;
    margin-top: -5px;
    font-size: 10px;
    margin-bottom: 0;
}
.content .right .bottom1{
    height: 3rem;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.content .right .bottom1 p{
    width: 67%;
    font-size: 14px;
    margin: 0;
    padding-left: 10%;
}
.content .right .bottom1 p a{
    width: 100%;
    height: 2.8rem;
    
    line-height: 4.5rem;
    display: block;
   
}
.content .right .bottom1 img{
    /* margin-top: 3%;
    margin-right: 10px; */
    width: 1.5rem;
    height: 1.5rem;
    padding-left: 2rem;
}
.content .right .bottom1 .a{
    width: 3.5rem;
    height: 3rem;
    line-height: 5.2rem;
    
}

.nav{
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 5rem;
    line-height: 3rem;
    /* margin-top: 9%; */
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0;
}
.nav a{
    /* text-align: center; */
    height: 4rem;
    line-height: 6rem;
    width: 30%;
}
.nav a img{
    margin-top: 2rem;
    margin-right: 8rem;
    height: 2rem;
    width: 2rem;
}
.nav .first{
    text-align: center;
    padding-right: 5rem;
    margin-top: -0.1rem;
    width: 40%;
}
.nav .first{
    text-align: center;
    padding-right: 5rem;
    margin-top: -0.1rem;
    width: 40%;
}
.nav .first p{
    margin: 0;
    padding: 0;
}
.nav .first p a{
    
    font-size: 1.7rem;
    padding-bottom:0.3rem;
}
.nav .first p .a{
    
    border-bottom: 3px solid #2cd2b9;
}

</style>